package com.hxzy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hxzy.dto.MerchandiserSearchDTO;
import com.hxzy.entity.Merchandiser;
import com.hxzy.vo.ReportVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 商家数据访问
 */
@Mapper
@Repository
public interface MerchandiserMapper extends BaseMapper<Merchandiser> {

    Merchandiser selectByPrimaryKey(Long id);

    /**
     * 查询
     * @param merchandiserSearchDTO
     * @return
     */
    List<Merchandiser> search(@Param(value = "dto") MerchandiserSearchDTO merchandiserSearchDTO);

    /**
     * 该年商家注册数量
     * @return
     */
    List<ReportVO> monthlyNumers();
}